home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!ns.unibol.com
- From: John Girvin <jgirvin@bfs.unibol.com>
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: AddIntServer + VERTB strangeness
- Date: Thu, 28 Mar 1996 13:21:02 GMT
- Message-ID: <199603281321.NAA02157@mailhost.unibol.com>
- X-NNTP-Posting-Host: ns.unibol.com
- X-Newsreader: TIN [version 1.2 PL2]
- X-Mail2News-Path: ns.unibol.com
-
- On 20 Mar 1996 19:27:12 +0100, mlelstv@serpens.rhein.de (Michael van Elst):
- :>John Girvin <jgirvin@bfs.unibol.com> writes:
-
- :>>eh? Im using the OS interrupt calls to avoid poking the interrupt vectors
- :>>directly, thats all.
- :>No, that's not all. You use the functions in a wrong way.
- erm, why? What is the point of having OS interrupt interfaces if not to
- abstract the underlying HW interrupt mechanism?
-
- My code does not care how the interrupt mechanism calls the interrupt code,
- only that my handler gets called at the correct time and that my handler is
- the only handler that gets called. Both these features are (allegedly)
- available as OS features, so I use the OS to get them. Tell me what I am
- doing wrong and Ill change it!
-
- :>>Do you believe that everything must be either 100% or 0% OS with no middle
- :>>ground? I dont!
- :>But obviously it has to be so.
- Why obviously? Whats wrong with using the OS to allocate HW resources you
- need (exitting nicely if not available) then hitting that hardware directly?
- If you stick to the published OS and HW interfaces (which I do) then surely
- there is no problem provided these interfaces dont change?
-
- :>Something in between just causes problems because
- :>you have to rely on the particular behaviour of the implementation or
- :>even of a particular machine configuration.
- What specifics of my kickstart/machine am I relying on by using the OS
- interrupts in this way? Im relying only on official interfaces and their
- officially described and officially "guaranteed" official behaviour.
-
- No hacks. No using undocumented features.
-
-
- :>That's why the only
- :>acceptable solution is to obey to the rules set by the OS specification.
-
- Im trying to. The original question was about the OS specification saying
- one thing ([re?]set Z after interrupt handler code to disable others in
- chain) and then behaving in another way. We seem to have got away from that
- and into another OS vs. non-OS (or 50% OS) war :(
-
- This is *old* code Im working with (from my 1.3 a500 days) and Im trying
- to find a compromise between "compatibility issues" and amount of rewriting
- required. Using the OS Interrupts to avoid vector banging is part of this.
- Sure, itd be *much* easier to bang everything directly and restrict the
- code to 1.3 68000 A500s, but Im not and still I get flamed for it???
-
- *sheesh* Am I not trying hard enough?
-
- cya,
- /John.
- __________________________________________________________________________
- |/\John Girvin : developing software for Unibol Inc., speaking for myself|
- |\/jgirvin@bfs.unibol.com | Amiga,!PC,net,Trek,SF,MTB,C2H50H,house,techno|
- |girv@girvnet.demon.co.uk | Youll never take me alive, Macro$loth fiends!|
- \A1200/030-40/10M/3.0 A500/000-7/2M/2.04 464/Z80-4/0.0625M/1.0 Team AMIGA/
-